import "./index.css"
import { Input } from "antd";
import { useState } from "react";
import Course from "./Course"

function Body() {
    const {Search} = Input
    const [searchKey, setSearchKey] = useState("")
    const onSearch = (val) => {
        setSearchKey(val)
    };
    return (
        <div className="Body">
            <Search
                placeholder="请输入课程名称查询"
                allowClear
                style={{ width: 300 }}
                onSearch={onSearch}
            />
            <Course searchKey={searchKey}></Course>
        </div>
    );
}
export default Body;